<div class="paidAds form">
<?php echo $this->Form->create('PaidAd', array('enctype' => 'multipart/form-data')); ?>
	<fieldset>
		<legend><?php echo __('Edit Paid Ad'); ?></legend>
	<?php
		echo $this->Form->input('id', array('class'=>'form-control'));
		echo $this->Form->input('title', array('class'=>'form-control'));
                if (!empty($this->request->data['PaidAd']['banner'])) {
                    echo $this->Html->image('advertises/' . $this->request->data['PaidAd']['banner'], array('width' => '140px', 'style' => 'margin-left13px'));
                }
		echo $this->Form->input('banners', array('type' => 'file', 'label'=>'Banner'));
		//echo $this->Form->input('position', array('class'=>'form-control'));?>
                
                <div class="input text required">
                    <label for="PaidAd">Position</label>
                    <select required="required" id="PaidAd" name="data[PaidAd][position]" class="form-control">
                        <option value="2" <?php if($this->request->data['PaidAd']['position']=='2'){ echo 'selected';} ?>>Left Content</option>
                        <option value="3" <?php if($this->request->data['PaidAd']['position']=='3'){ echo 'selected';} ?>>Right Content</option>
                        <option value="4" <?php if($this->request->data['PaidAd']['position']=='4'){ echo 'selected';} ?>>Top Header</option>
                        <option value="5" <?php if($this->request->data['PaidAd']['position']=='5'){ echo 'selected';} ?>>Top Banner</option>
                        <option value="6" <?php if($this->request->data['PaidAd']['position']=='6'){ echo 'selected';} ?>>Top Content</option>
                        <option value="7" <?php if($this->request->data['PaidAd']['position']=='7'){ echo 'selected';} ?>>Middle Content</option>
                        <option value="8" <?php if($this->request->data['PaidAd']['position']=='8'){ echo 'selected';} ?>>Bottom Content</option>
                        <option value="9" <?php if($this->request->data['PaidAd']['position']=='9'){ echo 'selected';} ?>>Left Sidebar</option>
                        <option value="10" <?php if($this->request->data['PaidAd']['position']=='10'){ echo 'selected';} ?>>Right Sidebar</option>
                    </select>
                </div>

                <div class="input text required">
                    <label for="expired">Limited Timeline</label>
                    <select required="required" id="expired" name="data[PaidAd][expired]" class="form-control">
                        <option value="1" <?php if($this->request->data['PaidAd']['month']=='1'){ echo 'selected';} ?>>1 month</option>
                        <option value="2" <?php if($this->request->data['PaidAd']['month']=='2'){ echo 'selected';} ?>>2 months</option>
                        <option value="3" <?php if($this->request->data['PaidAd']['month']=='3'){ echo 'selected';} ?>>3 months</option>
                        <option value="4" <?php if($this->request->data['PaidAd']['month']=='4'){ echo 'selected';} ?>>4 months</option>
                        <option value="5" <?php if($this->request->data['PaidAd']['month']=='5'){ echo 'selected';} ?>>5 months</option>
                        <option value="6" <?php if($this->request->data['PaidAd']['month']=='6'){ echo 'selected';} ?>>6 months</option>
                        <option value="7" <?php if($this->request->data['PaidAd']['month']=='7'){ echo 'selected';} ?>>7 months</option>
                        <option value="8" <?php if($this->request->data['PaidAd']['month']=='8'){ echo 'selected';} ?>>8 months</option>
                        <option value="9" <?php if($this->request->data['PaidAd']['month']=='9'){ echo 'selected';} ?>>9 months</option>
                        <option value="10" <?php if($this->request->data['PaidAd']['month']=='10'){ echo 'selected';} ?>>10 months</option>
                        <option value="11" <?php if($this->request->data['PaidAd']['month']=='11'){ echo 'selected';} ?>>11 months</option>
                        <option value="12" <?php if($this->request->data['PaidAd']['month']=='12'){ echo 'selected';} ?>>12 months</option>
                    </select>
                </div>
		<?php // echo $this->Form->input('paid_user_id', array('class'=>'form-control'));?>
                <?php echo $this->Form->input('link', array('class'=>'form-control', 'placeholder'=>'http://www.example.com'));?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
